import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const changeManager: AppRouteModule = {
  path: '/changeManager',
  name: 'changeManager',
  component: LAYOUT,
  redirect: '/changeManager/ECR',
  meta: {
    orderNo: 12,
    icon: 'material-symbols:add-photo-alternate-outline',
    title: t('routes.demo.changeManager.changeManager'),
  },
  children: [
    {
      path: 'ecr',
      name: 'ECR',
      meta: {
        title: t('routes.demo.changeManager.ECR'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/changeManager/ECR.vue'),
    },
    {
      path: 'ecn',
      name: 'ECN',
      meta: {
        title: t('routes.demo.changeManager.ECN'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/changeManager/ECN.vue'),
    },
  ],
};

export default changeManager;
